<?php
session_start();
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/class.admin.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/database.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/functions.php');
$admin= new admin();
$admin->canView($_SERVER['PHP_SELF']);
$admin->removeImage($_POST['id']);
?>